package com.yc.springmvc.service;

import com.yc.springmvc.bean.Person;
import org.apache.ibatis.annotations.Insert;

import java.util.List;

public interface PersonService {

    /**
     * 保存
     * @param person
     * @return
     */
    public boolean save(Person person);

    /**
     * 修改
     * @param person
     * @return
     */
    public boolean update(Person person);

    public boolean delete(String name);

    public Person getByName(String name);

    public List<Person> getAll();
}
